const express = require('express')
const fs = require('fs')
const path = require('path')
let cp = require('child_process');
var compression = require('compression')
const app = express()
app.use(compression());

// path.join(__dirname, 'public') 表示工程路径后面追加 public
app.use(express.static(path.join(__dirname, 'public')))
app.listen(18000, () => {
    console.log(`App listening at port 8080`)
})